package com.lgc.javathread.chapter1.t3;

/**
 * 针对其它线程不共享数据
 */
public class Program {
    public static void main(String[] args) {
        Thread runThread = Thread.currentThread();
        System.out.println(runThread.getName()+" "+runThread.getId());//线程名和id

        MyThread1 aa=new MyThread1();
        MyThread a=new MyThread("A");
        MyThread b=new MyThread("B");
        MyThread c=new MyThread("C");
        aa.start();
        a.start();
        b.start();
        c.start();
    }
}
